package com.fox.matrix;

public class RouteInfo {
    //起点坐标
    private Coordinate origin;
    //终点坐标
    private Coordinate destination;
    //距离 m
    private int distance;
    //花费时间 s
    private int duration;
    //有没计算结果
    private boolean existResult=true;

    public RouteInfo(Coordinate origin, Coordinate destination, int distance, int duration) {
        this.origin = origin;
        this.destination = destination;
        this.distance = distance;
        this.duration = duration;
    }

    public boolean isExistResult() {
        return existResult;
    }

    public void setExistResult(boolean hasResult) {
        this.existResult = hasResult;
    }

    public Coordinate getOrigin() {
        return origin;
    }

    public void setOrigin(Coordinate origin) {
        this.origin = origin;
    }

    public Coordinate getDestination() {
        return destination;
    }

    public void setDestination(Coordinate destination) {
        this.destination = destination;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }
}
